﻿using log4net;
using PcaCore.DAL;
using PcaParqueos.BOL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace PcaParqueos.DAL
{
    public class dTipoVehiculo
    {
        private static readonly ILog log = LogManager.GetLogger(typeof(dTipoVehiculo));

        #region public

        public static List<oTipoVehiculo> GetList()
        {
            try
            {
                //CREATE OR REPLACE FUNCTION pca_parqueos.fn_get_list_tipos_vehiculos()RETURNS SETOF pca_parqueos.tipos_vehiculos  
                return Core.GetListObjecstDb<oTipoVehiculo>("pca_parqueos.fn_get_list_tipos_vehiculos"); 
            }
            catch (Exception ex)
            {
                throw Core.LogException(log, ex, MethodBase.GetCurrentMethod().Name);
            }
        }

        #endregion
    }
}
